﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Paros.Utils
{
    public class MessageHelper
    {
        public static DialogResult ShowError(string msg)
        {
            return MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static DialogResult ShowWarning(string msg)
        {
            return MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        public static DialogResult ShowMessage(string msg)
        {
            return MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static DialogResult ShowConfirmation(string msg)
        {
            return MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
